power method for dominant eigenvalues and eigenvectors